import { post, get } from "@/server/request.ts";
interface MessageProp {
  userId: string | number;
}

export function messageGet(data: MessageProp) {
  return post({
    url: "/message/get",
    data,
  });
}
export function messageAck(data: { id: string | number }) {
  return post({
    url: "message/ack",
    data,
  });
}
export function messageType(data: { userId: string | number }) {
  return post({
    url: "message/type",
    data,
  });
}
